home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PACKET / PKGOL624.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-03-01  |  7KB  |  148 lines

  1. echo off
  2. rem  Automatic Installation routine.  Requires two parameters:
  3. rem  1: the source drive (the one with the PkGOLD Testdrive files)
  4. rem  2: the target drive (where the program will be installed)
  5. rem  The target must have at least 360K free for the main program and
  6. rem  an additional 250K for the help system. A 720-K floppy or a hard
  7. rem  disk is recommended to allow all files to be installed.
  8. cls
  9. ECHO  ┌────────────────────────────────────────────────┐
  10. echo  │                                                │
  11. echo  │            Test Drive Installation             │
  12. echo  │                                                │
  13. ECHO  │           Interflex Systems Design             │
  14. echo  │             Post Office Box 6418               │
  15. echo  │         Laguna Niguel, CA 92607-6418           │
  16. echo  │                                                │
  17. echo  │    VISA & MasterCard orders: (714) 496-6639    │
  18. echo  │                                                │
  19. echo  └────────────────────────────────────────────────┘
  20. if t%1==t goto noparm
  21. if t%2==t goto noparm
  22. if t%1==t%2 goto samedrive
  23. Goto Install
  24. echo Found %1
  25. rem ------------- No parameters given to install
  26. :noparm
  27. echo  ┌───────────────────────────────────────────────────────────────────┐
  28. echo  │ Type INSTALL x: y:       e.g.  INSTALL A: C: (drive letters only) │
  29. echo  │                                                                   │
  30. echo  │ where x: is the source drive (the one with Pkgold Test Drive)     │
  31. echo  │   and y: is the target drive, where you want to put the program.  │
  32. echo  └───────────────────────────────────────────────────────────────────┘
  33. goto done
  34. rem ------------- User used same drive letters
  35. :samedrive
  36. echo ┌───────────────────────────────────────────────────────────┐
  37. echo │ The Source drive must be different from the Target drive. │
  38. echo │                                                           │
  39. echo │    e.g.  INSTALL A: D:                                    │
  40. echo └───────────────────────────────────────────────────────────┘
  41. goto done
  42. :install
  43. if not exist %1tdsfx.exe goto baddisk
  44. echo  ┌─────────────────────────────────────────────────────────────┐
  45. echo  │  o    Installing from "%1" to "%2"                          │
  46. echo  │                                                             │
  47. echo  │  o    A subdirectory named "TESTDRIV" will be created       │
  48. echo  │                                                             │
  49. echo  │  o    If this is okay, hit [enter]. To cancel installation  │
  50. echo  │       at this point, use Ctrl-C.                            │
  51. echo  └─────────────────────────────────────────────────────────────┘
  52. echo 
  53. pause
  54. echo 
  55. %2
  56. cd\
  57. md TestDriv > nul
  58. cd TestDriv > nul
  59. if not exist pkdemo.exe goto newdir
  60. echo 
  61. echo    It appears that a version of PkDEMO already exists in the
  62. echo    directory "%2:\testdriv"
  63. echo 
  64. echo    You can install this version "on top" of the existing version
  65. echo    by hitting any key, or you can use Control-Break to stop the
  66. echo    installation and manually delete the existing PkDEMO files.
  67. echo    Or you could install to a different drive letter.
  68. echo 
  69. echo    Suggestion: Go ahead and let this install into the testdrive
  70. echo    directory by hitting any key.
  71. echo 
  72. pause
  73. echo y|del *.* > nul
  74. echo 
  75. :NEWDIR
  76. echo  ┌────────────────────────────────────────────────────────────┐
  77. echo  │   Now unpacking the PkDEMO program and support files....   │
  78. echo  └────────────────────────────────────────────────────────────┘
  79. echo 
  80. %1tdsfx
  81. if not exist pkdemo.exe goto noinstall
  82. echo  ┌────────────────────────────────────────────────────────────┐
  83. echo  │   Now unpacking the PkGOLD Help system...                  │
  84. echo  └────────────────────────────────────────────────────────────┘
  85. echo 
  86. %1tdhlpsfx
  87. echo  ┌────────────────────────────────────────────────────────────┐
  88. echo  │   Now unpacking some useful Docfiles...                    │
  89. echo  └────────────────────────────────────────────────────────────┘
  90. echo 
  91. %1docfiles
  92. if exist PKGOLD.HLP goto ALLOK
  93. echo  ┌────────────────────────────────────────────────────────────┐
  94. echo  │ HELP system not installed. Not enough room (needs 200K+)   │
  95. echo  └────────────────────────────────────────────────────────────┘
  96. :ALLOK
  97. CLS
  98. ECHO 
  99. ECHO 
  100. echo  ┌───────────────────────────────────────────────────────────────╖
  101. echo  │   You may now run the program by typing PKDEMO [enter]        ║
  102. rem
  103. if NOT exist pkgold.hlp goto skiphelp
  104. rem
  105. echo  │   Use [F1] for online help while program is running.          ║
  106. echo  │                                                               ║
  107. echo  │   The help system has information on TNC setup and other      ║
  108. echo  │   subjects. You can use the HELP system by itself by          ║
  109. echo  │   starting the program with the "/H" option, e.g. PKDEMO/H    ║
  110. :skiphelp
  111. echo  │                                                               ║
  112. echo  │   Type HELP (a batch file) to see some other documentation.   ║
  113. echo  │   Also: Look at the various .DOC files on the disk.           ║
  114. echo  │                                                               ║
  115. echo  │   73, de Jeff WA4EGT -- InterFlex Systems -- (714) 496-6639   ║
  116. echo  ╘═══════════════════════════════════════════════════════════════╝
  117. ECHO 
  118. echo  ┌───────────────────────────────────────────────────────────────╖
  119. echo  │   PS: If you like the program, please call and order the      ║
  120. echo  │   release version. Also, ask about PkGOLD Enhanced Edition,   ║
  121. echo  │   and KaGOLD DualPort for the Kantronics TNCs.                ║
  122. echo  ╘═══════════════════════════════════════════════════════════════╝
  123. goto done
  124. rem Bad Installation
  125. :noinstall
  126. cls
  127. echo ┌───────────────────────────────────────────────────────────────┐
  128. echo │ Sorry, but either no room on target, or you didn't specify    │
  129. echo │ the drives correctly, the Testdrive disk is not in "%2"       │
  130. echo │ or some other problem.  Please insert your TestDrive disk in  │
  131. echo │ some floppy drive, and try again.                             │
  132. echo └───────────────────────────────────────────────────────────────┘
  133. ECHO 
  134. goto done
  135. :baddisk
  136. ECHO 
  137. ECHO 
  138. echo  ┌──────────────────────────────────────────────────────────────┐
  139. echo  │                                                              │
  140. echo  │          TDSFX.EXE is not on the %1 drive.                   │
  141. echo  │          Please insert the disk, or be sure that the         │
  142. echo  │          test drive files are on the source disk.            │
  143. echo  │                                                              │
  144. echo  └──────────────────────────────────────────────────────────────┘
  145. ECHO 
  146. rem Program Ends here
  147. :done
  148. ECHO